/*
 *
 *
 *
 *
 */

package com.usefullc.user.domain;

import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity(name="u_dept")
@ApiModel("部门")
@Data
public class Dept extends BaseEntity {


    @ApiModelProperty(notes = "编码--字典关系唯一值")
    @Column(length = 50,nullable = false,unique = true)
    private String code;

    @ApiModelProperty(notes = "父ID")
    @Column(length = 20, nullable = false)
    private Long parentId;


    @ApiModelProperty(notes = "名称")
    @Column(length = 50,nullable = false)
    private String name;

    @ApiModelProperty(notes = "序号")
    @Column(length = 4, nullable = false)
    private Integer orderNo;

    @ApiModelProperty(notes = "描述")
    @Column(length = 1000,nullable = true)
    private java.lang.String description;



    public Dept(){
    }

}
